package com.riatimes.event
{
	import flash.events.Event;
	
	/**
	 * Socket 事件
	 * @author Nick Wong
	 */
	public class SocketEvent extends Event
	{
		
		/**
		 * 链接成功
		 *  
		 */
		public static const EVENT_CONNECTED:String = "connectedEvent";
		
		/**
		 * 断开连接
		 *  
		 */
		public static const EVENT_DISCONNECT:String="disconnectEvent";
		
		/**
		 * 获取数据
		 *  
		 */
		public static const EVENT_GETDATA:String = "getDataEvent";
		
		/**
		 * ioError事件
		 *  
		 */
		public static const EVENT_IOErrorEvent:String = "ioErrorEvent";
		
		/**
		 * 安全事件
		 *  
		 */
		public static const EVENT_SECURITY:String = "securityEvent";
		
		/**
		 * 数据不可用
		 *  
		 */
		public static const EVENT_UNUSEDATA:String = "unUsedataEvent";
		
		/**
		 * 构造事件
		 * @param type
		 * @param data
		 */
		public function SocketEvent(type:String,data:*) 
		{
			super(type);
			this.data = data;
			
		}
		
		/**
		 *数据 
		 */		
		private var data:*;
	}

}